package com.inexas.cu.client.mvp;


abstract class MemberImpl extends ObservableImpl implements Member {
	protected final String key;
	private Access access;

	protected MemberImpl(String key) {
		// !todo Consider adding default ctor and taking key from Java class field name during binding
		this.key = key;
	}

	/* (non-Javadoc)
     * @see com.inexas.cu.client.mvp.PmMember#getKey()
     */
	public String getKey() {
		return key;
	}

	/* (non-Javadoc)
     * @see com.inexas.cu.client.mvp.PmMember#getAccess()
     */
	public Access getAccess() {
		return access;
	}

	/* (non-Javadoc)
     * @see com.inexas.cu.client.mvp.PmMember#setAccess(com.inexas.cu.client.mvp.PmMemberImpl.Access)
     */
	public void setAccess(Access access) {
		// !todo Fire an event
		this.access = access;
	}

}
